
compiler_plugin "FS.Plugins.Ext.DaysAway"
{
    desc            =   "Allows representation of days using dynamic date from today";
    examples        =   [ '2 days away', '4 days away', 'daysAhead days away' ];
    type            =   "expr";
    precedence      =   1;  
    grammar_match   =   "$num:@starttoken.tvalue $type:( days | hours | minutes | seconds ) away?"; 
    start_tokens    =   [	"$NumberToken", "$IdentSymbolToken" ]
    build           =   function(args)
                        {       
                            return sys.compiler.ToDuration( args["numValue"], args["typeValue"], args["num"] );
                        }
}